//package cn.geminis.web.exception;
//
//import cn.geminis.core.exception.BusinessException;
//import org.springframework.http.HttpStatus;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.RestControllerAdvice;
//
//import javax.servlet.http.HttpServletResponse;
//
//
///**
// * @author Allen
// */
//@RestControllerAdvice
//public class DefaultExceptionHandler {
//
//    @ExceptionHandler(Exception.class)
//    public void defaultExceptionHandler(HttpServletResponse resp, Exception ex) {
//        if (!(ex instanceof BusinessException)) {
//            resp.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value());
//        }
//    }
//
//}
